/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.mediator;

/**
 *
 * @author xiay
 * @since 2020/12/13 10:17 下午
 */
public class Development implements Department {

    private Mediator mediator;

    public Development(Mediator mediator) {
        this.mediator = mediator;
        this.mediator.register("development", this);
    }

    @Override
    public void selfAction() {
        System.out.println("研发项目！");
    }

    @Override
    public void outAction(String dept) {
        mediator.command(dept);
    }
}
